package cn.kgc.watch.mapper;

import cn.kgc.watch.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    List<Order> selectOrderByUserId(@Param("userId") Integer userId);

    Order selectByOrderId(@Param("orderId") Integer orderId);

    void insertOrder(@Param("order") Order order);

    //查询用户底下所有的Id
    List<Order> selectUserOrder(Integer id);
    //根据订单明细查找订单
    Order  selectUserOrderById(Integer id);

    void updateOrderState(Order order);

    void updateOrderPay(Order order);
}